package net.zjitc.linearlist.impl;

/**
 * Created by Administrator on 2017/4/27.
 */
public class TwoNode<E> {
    private E date; //数据本身
    private TwoNode<E> next;  //指向下个节点的引用
    private TwoNode<E> pre;  //指向上个节点的引用

   /*构造函数等自己写......*/

    public TwoNode() {
    }

    public TwoNode(E date, TwoNode<E> next, TwoNode<E> pre) {
        this.date = date;
        this.next = next;
        this.pre = pre;
    }

    //setter getter方法

    public E getDate() {
        return date;
    }

    public void setDate(E date) {
        this.date = date;
    }

    public TwoNode<E> getNext() {
        return next;
    }

    public void setNext(TwoNode<E> next) {
        this.next = next;
    }

    public TwoNode<E> getPre() {
        return pre;
    }

    public void setPre(TwoNode<E> pre) {
        this.pre = pre;
    }
}
